package com.gds.wiki.cloud.admin.client.sys.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.gds.wiki.cloud.framework.common.model.CommonModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/* 
* 
* gen by beetlsql 2018-04-23
*/

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_user")
public class AdminUser extends CommonModel {
	
	private Long id ;
	//年龄
	private Integer age ;
	//组织架构id
	private Long deptId ;
	//性别（0男1女）
	private Integer sex ;
	//0停用1正常
	private Integer status ;
	//用户类型（0管理员1用户）
	private Integer usertype ;
	//职责
	private String jobTitle ;
	//登录账号
	@NotEmpty(message = "用户名不能为空")
	@Length(min = 5, max = 20, message = "用户名5-20长度")
	private String loginname ;
	//姓名
	private String name ;
	//密码
//	@NotEmpty(message = "密码不能为空")
	private String password ;
	//电话
	private String phone ;

}
